import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-08-17
 * Time: 13:17
 */
public class Test {
    public static void main(String[] args) {
        Heap heap = new Heap();
        int[] arr = {1,34,12,456,12,4,76,43,23,11,1,5,23,9,12};
        heap.createHeap(arr);
        System.out.println(Arrays.toString(arr));
        heap.heapSort(arr);
        System.out.println(Arrays.toString(arr));
    }
}
